var electronicArchivesMdule = (function () {
    return {
    	
        /**
         * 获取个人资料
         * @param {Object} param
         * @param {Object} callBack
         */
        queryUserInfo: function (param, callBack) {
            utilModule.get({
                url: "userCenter/queryDetail",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
         * 获取随访记录
         * @param {Object} param
         * @param {Object} callBack
         */
        sendpatientvisitlist: function (param, callBack) {
            utilModule.post({
            	commonUrl:xyyl_doctor_server,
                url: "api/sendpatientvisitlist.json",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
		
		 //档案查询
		 //@param {Object} param
		 //@param {Object} callBack
        queryElectronicArchivesList: function (param, callBack) {
            utilModule.post({
                url: "archives/queryElectronicArchivesList",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
		 * 档案更新
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		updateElectronicArchives: function(param, callBack) {
			utilModule.post({
				url: "archives/updateElectronicArchives",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 新增电子档案
		 */
		insertElectronicArchives:function(param, callBack){
			utilModule.post({
				url: "archives/insertElectronicArchives",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 新增随访
		 */
		savepatientvisit:function(param, callBack){
			utilModule.post({
				commonUrl:xyyl_doctor_server,
				url: "api/savepatientvisit.json",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 修改随访
		 */
		updatepatientvisit:function(param, callBack){
			utilModule.post({
				commonUrl:xyyl_doctor_server,
				url: "api/updatepatientvisit.json",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 电子档案详情
		 */
		patientvisitinfo:function(param, callBack){
			utilModule.post({
				commonUrl:xyyl_doctor_server,
				url: "api/patientvisitinfo.json",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 档案详情
		 */
		archives:function(param, callBack){
			utilModule.post({
				url: "archives/get",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 既往病史列表
		 */
		listpage:function(param, callBack){
			utilModule.post({
				url: "patientdiagnostic/listpage",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 删除既往病史
		 */
		deletepage:function(param, callBack){
			utilModule.post({
				url: "patientdiagnostic/delete",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 新增既往病史
		 */
		insertpage:function(param, callBack){
			utilModule.post({
				url: "patientdiagnostic/insert",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 查询既往病史
		 */
		getpage:function(param, callBack){
			utilModule.post({
				url: "patientdiagnostic/get",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 修改既往病史
		 */
		updatepage:function(param, callBack){
			utilModule.post({
				url: "patientdiagnostic/update",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		个人信息表
		 * @param {Object} param
         * @param {Object} callBack
		**/
		
        personalinforForm: function (param, callBack) {
            utilModule.post({
            	commonUrl:xyyl_doctor_server,
                url: "api/baseinfo/getinfo.json",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                    console.log(response);
                }
            });
        },
        
		/**
		严重患者补充表
		 * @param {Object} param
         * @param {Object} callBack
		**/
		severePatientTable:function (param, callBack) {
            utilModule.post({
            	commonUrl:xyyl_doctor_server,
                url: "api/supplementInfo/getinfo.json",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        }
  }
})();